import 'package:cream_chat_flutter/globals/GlobalProvider.dart';
import 'package:cream_chat_flutter/globals/ThemeProvider.dart';
import 'package:cream_chat_flutter/pages/HomeTabPage/HomeTabPageProvider.dart';
import 'package:cream_chat_flutter/pages/UserTabPage/UserTabPageProvider.dart';
import 'package:provider/provider.dart';
import 'package:provider/single_child_widget.dart';

List<SingleChildWidget> providers = [
  ///全局的状态全局管理
  ChangeNotifierProvider(create: (_)=>ThemeProvider()),
  ChangeNotifierProvider(create: (_)=>GlobalProvider()),
  ///tab页的状态全局管理
  ChangeNotifierProvider(create: (_)=>HomeTabPageProvider.getInstance()),
  ChangeNotifierProvider(create: (_)=>UserTabPageProvider.getInstance()),
];